Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement unbind from managed service instance #3688

Conversation

uzabanov
Copy link
Contributor

@uzabanov uzabanov commented Jan 7, 2025

  • Added IsAsync flag to UnbindResponse in OSBAPI and the logic in the Unbind method
  • Added returning Gone error
  • Implementing the Unbind call in binding controller and also polling the last operation for the unbind response
  • Refactor binding controller so that the calls for the Bind, Unbind and Provison and Deprovision in the services controller are identical
  • Implement Setting owner reference with BlockOwnerDeletion=true and added 'foregroundDeletion' finalizer in binding controller

fixes #3296

Is there a related GitHub Issue?

#3296

Does this PR introduce a breaking change?

No

Copy link
Member

@danail-branekov danail-branekov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

BindingRequestedCondition = "BindingRequested"
BindingFailedCondition = "BindingFailed"

// TODO: remove UnbindingRequestedCondition
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the TODO

- Added IsAsync flag to UnbindResponse in OSBAPI and the logic in the
  Unbind method
- Added returning Gone error and ignoring in instances and bindings
  controllers
- Implementing the Unbind call in binding controller and also polling
  the last operation for the unbind response
- Refactor binding controller so that the calls for the Bind, Unbind and
  Provison and Deprovision in the services controller are identical
- Implement Setting owner reference with BlockOwnerDeletion=true and
  added 'foregroundDeletion' finalizer in binding controller

fixes cloudfoundry#3296

Co-authored-by: Danail Branekov <[email protected]>
@uzabanov uzabanov force-pushed the issues/3296-unbind-from-managed-instance branch from 15d2c4d to 8bfde5d Compare January 8, 2025 10:13
@danail-branekov danail-branekov enabled auto-merge (rebase) January 8, 2025 10:13
@danail-branekov danail-branekov merged commit e47d419 into cloudfoundry:main Jan 8, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

As a Korifi API user I want to be able to unbind from a managed service instance
2 participants